package Communication;
/**
 * 
 * @author Danny
 *
 */
public class BluetoothConnection 
{
	private static Bluetooth connection = null;
	
	/**
	 * Constructor
	 */
	protected BluetoothConnection()
	{
		
	}
	
	
	/**
	 * getInstance
	 * Returns active instance of bluetooth connection. 
	 * @return connection
	 */
	public synchronized static Bluetooth getInstance() 
	{
		//return Bluetooth instance to invoker.
		if(connection == null){
			connection = Bluetooth.getInstance();
		}
		return connection;
	}
}
